#include <Windows.h>
#include <stdio.h>
#include "Task.h"

int main()
{
	Task task;
	task.setData(110);
	task.createTask();
	char cmd[200] = {0};
	while (1) {
		gets_s(cmd);
		if (strcmp(cmd, "pause") == 0) {
			task.pauseTask();
		}
		else if (strcmp(cmd, "run") == 0 ) {
			task.runTask();
		}
		else if (strcmp(cmd, "exit") == 0) {
			task.exitTask();
			break;
		}
	}
	return 0;
}